#include "Gobang.hpp"
#include "NetworkGobang.hpp"

int main(int argc, const char* argv[])
{
	if (argc < 2)
	{
		fprintf(stderr, "Usage:%s <local|network>\n", argv[0]);
		return -1;
	}

	if (strcmp(argv[1], "local") == 0)
	{
		Gobang game("LH", "SX");
		game.run();
	}
	else if (strcmp(argv[1], "network") == 0)
	{
		NetworkGobang networkGoBang("LH", "SX");
		networkGoBang.run();
	}
	else
	{
		fprintf(stderr, "Unkonwn mode\n");
	}

	return 0;
}